package com.xiebiao.springboot3.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.List;

/**
 * @author Bill Xie
 * @since 2025/9/5 16:41
 **/
@Entity
@Data
@Table(name = "lz_user")
public class UserEntity {
    @Id
    private Long id;
    private String username;
    private String idBack;
    @OneToMany(mappedBy = "userId")
    private List<UserAddressEntity> address;


}
